package com.salton123

import com.salton123.utils.task.ThreadQueue

/**
 * User: newSalton@outlook.com
 * Date: 2024/1/21 9:09 PM
 * ModifyTime: 9:09 PM
 * Description:
 */
class ext {
}
fun Any.executeByIo(task: () -> Unit) {
    ThreadQueue.post {
        task.invoke()
    }
}

fun Any.runOnUi(task: () -> Unit) {
    ThreadQueue.postOnUi {
        task.invoke()
    }
}